import axios from "./axios";
export const getweather = () => {
    return axios({
        url: 'http://v1.yiketianqi.com/api',
        method: 'get',
        params: {
            unescape: 1,
            version: "v63",
            appid: '92328197',
            appsecret: "i6QQn6Z4"
        }
    })
}

// 学生分布情况
export const getstudent = () => {
    return axios({
        url: '/v1.0/api/intelligentDetection/data',
        method: 'get'
    })
}

// 水电用量 
export const getwater = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataTop',
        method: 'get'
    })
}


// 地图
export const getmap = (data) => {
    return axios({
        url: `https://geo.datav.aliyun.com/areas_v3/bound/${data}_full.json`
    })
}



// 监控
export const getjiank = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/safeManage/monitoringSituation',
        method: 'get'
    })
}

// 门禁
export const getmenjin = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/safeManage/dutySituation',
        method: 'get'
    })
}

// 值班情况
export const getzhi = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/safeManage/entranceGuardSituation',
        method: 'get'
    })
}

// 监控画面

export const gethua = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/safeManage/monitoringList',
        method: 'get'
    })
}
// 设备统计

export const getshebei = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/deviceWorking/equipment',
        method: 'get'
    })
}

// 实时用电
export const getdian = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/deviceWorking/electricityConsumption',
        method: 'get'
    })
}

// 场地

export const getchangdi = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/deviceWorking/venueUse',
        method: 'get'
    })
}

// 设备名称

export const getshe=()=>{
    return axios ({
        url:'http://localhost:3002/v1.0/api/deviceWorking/equipmentTesting',
        method:'get'
    })
}

// 警报
export const getjing=()=>{
    return axios({
            url: "http://localhost:3002/v1.0/api/deviceWorking/allPoliceData",
         method:'get'
        })
}
